<template>
    <div>
        <el-upload
        action="http://localhost:8888/recognition/redwine"
        list-type="picture-card"
        :on-success="successHandler">
        <i class="el-icon-plus"></i>
        </el-upload>
        <div>
            <h3>识别结果：</h3>
            <el-table :data="resp.result"
                v-loading="listLoading"
                element-loading-text="Loading"
                border
                fit
                highlight-current-row>
                <el-table-column label="精准度" align="center" prop="score"></el-table-column>
                <el-table-column label="分类" align="center" prop="root"></el-table-column>
                <el-table-column label="关键字" align="center" prop="keyword"></el-table-column>
            </el-table>
        </div>
    </div>
</template>

<!--脚本js-->
<script>
export default {
    data(){
        return{
            resp:{}
        }
    },
    methods:{
        successHandler(resp){
            this.resp = resp;
        }
    }

}
</script>

<!--样式html-->
<style lang="sass" scoped>

</style>